package com.crane.oss.enums;

/**
 * 班级类型
 * 
 * @author tyh
 *
 */
public enum ClassesStatusEnum {
	
	common_classes(0, "已毕业"),

	layered_classes(1, "在读");

	private Integer type;

	private String remark;

	private ClassesStatusEnum(Integer type, String remark) {
		this.type = type;
		this.remark = remark;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public static String getRemark(Integer type) {
		for (ClassesStatusEnum classesStatusEnum : ClassesStatusEnum.values()) {
			if (classesStatusEnum.getType().equals(type)) {
				return classesStatusEnum.getRemark();
			}
		}
		return "";
	}
}
